package com.aiyige.model;

import com.vondear.rxtools.RxTool;

import java.io.Serializable;

/**
 * Created by xiachao on 2018/1/23.
 */

public class DeviceInfo implements Serializable {
    private static final String secretKey = "ff8080816120cbd1016120cd81e22018";//Header秘钥
    String signAccesstoken;
    String signDeviceBrand;// 设备厂商品牌 samsung 小米 iPhone
    String signDeviceType;//  设备类型 丽日 Note3 或 6s
    String signDeviceCode;// 设备唯一码
    String signLanguage;// 语言
    String signOs;// android 或 ios
    String signOsVersion;// 操作系统版本
    String signAppVersion;// app的版本号
    String signSignature;// 这个是加密算法获得的
    String signAppId;//app类型

    public String getSignAppId() {
        return signAppId;
    }

    public void setSignAppId(String signAppId) {
        this.signAppId = signAppId;
    }

    public String getSignAccesstoken() {
        return signAccesstoken;
    }

    public void setSignAccesstoken(String signAccesstoken) {
        this.signAccesstoken = signAccesstoken;
    }

    public String getSignDeviceBrand() {
        return signDeviceBrand;
    }

    public void setSignDeviceBrand(String signDeviceBrand) {
        this.signDeviceBrand = signDeviceBrand;
    }

    public String getSignDeviceType() {
        return signDeviceType;
    }

    public void setSignDeviceType(String signDeviceType) {
        this.signDeviceType = signDeviceType;
    }

    public String getSignDeviceCode() {
        return signDeviceCode;
    }

    public void setSignDeviceCode(String signDeviceCode) {
        this.signDeviceCode = signDeviceCode;
    }

    public String getSignLanguage() {
        return signLanguage;
    }

    public void setSignLanguage(String signLanguage) {
        this.signLanguage = signLanguage;
    }

    public String getSignOs() {
        return signOs;
    }

    public void setSignOs(String signOs) {
        this.signOs = signOs;
    }

    public String getSignOsVersion() {
        return signOsVersion;
    }

    public void setSignOsVersion(String signOsVersion) {
        this.signOsVersion = signOsVersion;
    }

    public String getSignAppVersion() {
        return signAppVersion;
    }

    public void setSignAppVersion(String signAppVersion) {
        this.signAppVersion = signAppVersion;
    }

    public String getSignSignature() {
        return signSignature;
    }

    public void setSignSignature(String signSignature) {
        this.signSignature = signSignature;
    }

    public String getSignature() {
        signSignature = "signAccesstoken=" + signAccesstoken
                + "&signDeviceBrand=" + signDeviceBrand
                + "&signDeviceType=" + signDeviceType
                + "&signDeviceCode=" + signDeviceCode
                + "&signLanguage=" + signLanguage
                + "&signOs=" + signOs
                + "&signOsVersion=" + signOsVersion
                + "&signAppVersion=" + signAppVersion
                + "&signAppId=" + signAppId
                + "&" + secretKey;
        return RxTool.Md5(signSignature);
    }
}
